<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="org.limp.mine.DateTrimmer"%>
<%@ page import="jt.classic.app.gdzc.GdzcTemplateManager"%>
<%@ page import="jt.classic.system.ISystem"%>
<%@ page import="jt.classic.system.user.IUser"%>
<%@ page import="org.limp.basework.Table"%>
<%@ page import="org.limp.basework.Column"%>
<%@ page import="org.limp.basework.impl.CommonBean4HSQ"%>
<%@ page import="jt.classic.app.gdzc.impl.GdzcTemplateImpl" %>
<%@ page import="jt.classic.system.databook.IDataIndex" %>
<%
	String context = jt.classic.system.ISystem.getContextPath();
	
	IDataIndex dataIndex = (IDataIndex)request.getAttribute("dataIndex");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>模板定义</title>
</head>
<jsp:include page="../head.jsp"></jsp:include>
<script src="<%=context %>/system/tablequery/js/tablehandler.js"></script>
<link href="<%=context %>/app/gdzc/css/neutemplate.css" rel="stylesheet" />
<link href="<%=context %>/app/gdzc/css/dragcontainer.css" rel="stylesheet" />
<script src="<%=context%>/app/gdzc/js/dragcontainer.js"></script>
<script src="<%=context%>/app/gdzc/js/neutemplate.js"></script>
<body onload="initPage(0);">
<form id="form1" name="form1" method="post" action="" enctype="multipart/form-data">
<input type="hidden" name="TYPEID" value="<%=(dataIndex != null ? dataIndex.id() : "") %>">
<input type="hidden" name="TYPENAME" value="<%=(dataIndex != null ? dataIndex.iname() : "") %>">
<input type="hidden" name="TYPECODE" value="<%=(dataIndex != null ? dataIndex.icode() : "") %>">
<input type="hidden" name="TSTATUS" value="0">
<div style="margin-left:15px;" id="toolbar"></div>
<table class="tab4edit" style="width:95%;margin:15px;">
   <tr>
      <td class="td1" width="150" align="center">模板名称</td>
      <td><input type="text" name="TNAME" style="width:400px;" value="" /> <font color="red" title="必填项"><b>*</b></font></td>
   </tr>
   <tr>
      <td class="td1" align="center">模板描述</td>
      <td><textarea id="TDESC" name="TDESC" style="width:400px;height:50px;"></textarea></td>
   </tr>
   <tr>
      <td class="td1" align="center">所属类别</td>
      <td><%=(dataIndex != null ? dataIndex.iname() : "") %></td>
   </tr>
   <tr>
      <td class="td1" align="center">打印模板</td>
      <td>
          <input type="file" name="file1" value=""/> 
          <input type="file" name="file2" value=""/><br/> 
          <input type="file" name="file3" value=""/> 
          <input type="file" name="file4" value=""/> 
      </td>
   </tr>
</table>
<div id="lib_Tab1" style="margin:15px;">
  <div class="lib_Menubox lib_tabborder">
    <ul>
      <li id="one5" onclick="setTab('one',5,5)" class="hover">通用属性</li>
      <li id="one1" onclick="setTab('one',1,5)">基本信息 <img id="img1" style="display:none;" src="<%=context %>/app/gdzc/images/add.png" alt="定义模板基本属性" style="cursor:hand;margin-bottom:-4px;" onclick="javascript:addItem('基本属性', 'DragContainer1', '<%=GdzcTemplateImpl.PROP_BASE%>');"></li>
      <li id="one2" onclick="setTab('one',2,5)">配置参数 <img id="img2" style="display:none;" src="<%=context %>/app/gdzc/images/add.png" alt="定义模板配置属性 " style="cursor:hand;margin-bottom:-4px;" onclick="javascript:addItem('配置属性', 'DragContainer2', '<%=GdzcTemplateImpl.PROP_CONFIG %>');"></li>
      <li id="one3" onclick="setTab('one',3,5)">财务接口 <img id="img3" style="display:none;" src="<%=context %>/app/gdzc/images/add.png" alt="定义资产模板财务属性" style="cursor:hand;margin-bottom:-4px;" onclick="javascript:addItem('财务属性', 'DragContainer3', '<%=GdzcTemplateImpl.PROP_FINANCE %>');"></li>
      <li id="one4" onclick="setTab('one',4,5)">维保管理 <img id="img4" style="display:none;" src="<%=context %>/app/gdzc/images/add.png" alt="定义资产模板维保属性" style="cursor:hand;margin-bottom:-4px;" onclick="javascript:addItem('维保属性', 'DragContainer4', '<%=GdzcTemplateImpl.PROP_MAINTEN %>');"></li>
    </ul>
  </div>
  <div class="lib_Contentbox lib_tabborder">
    <div id="con_one_5" >
    <div id="Demo3">
		<div class="DragContainer" id="DragContainer5" overClass="OverDragContainer"></div>
	</div>
    </div>
    <div id="con_one_1" style="display:none">
    <div id="Demo4">
		<div class="DragContainer" id="DragContainer1" overClass="OverDragContainer"></div>
	</div>
    </div>
    <div id="con_one_2" style="display:none">
    <div id="Demo5">
		<div class="DragContainer" id="DragContainer2" overClass="OverDragContainer"></div>
	</div>
    </div>
    <div id="con_one_3" style="display:none">
    <div id="Demo6">
		<div class="DragContainer" id="DragContainer3" overClass="OverDragContainer"></div>
	</div>
    </div>
    <div id="con_one_4" style="display:none">
    <div id="Demo7">
		<div class="DragContainer" id="DragContainer4" overClass="OverDragContainer"></div>
	</div>
    </div>
  </div>
</div>													

</form>
</body>
</html>
